package com.zed.api.domain.currentuser;

import java.time.LocalDateTime;

/**
 * 匿名账号，游客账号
 * @author Zed
 *
 */
public final class AnonymousAccount implements Account {

	/**
	 * 无参构造方法
	 */
	protected AnonymousAccount() {
	}

	@Override
	public String getId() {
		return "anonymous";
	}

	@Override
	public String getDisplayName() {
		return "游客";
	}
	
	@Override
	public boolean isAnonymous() {
		return true;
	}
	
	@Override
	public boolean actived() {
		return false;
	}

	@Override
	public LocalDateTime getCreateDate() {
		return LocalDateTime.now();
	}
	
	@Override
	public <A> A adapt(Class<A> adaptType) {
		return null;
	}

	private static Account INSTANCE = new AnonymousAccount();
	
	public static Account getInstance() {
		return INSTANCE;
	}
}
